<?php


class Loyer {

    private $date_loyer;
    private $id_loc;
    private $id_loca;
    private $solde_payer_loyer;
    private $remarque_loyer;
    private $statut_loyer;


    public function __construct($valeur = array()){
        if(!empty($valeur)){
            $this->affecte($valeur);

        }
    }

    public function affecte($donnees){
        foreach ($donnees as  $attribut => $valeur){
            switch($attribut){

                case 'id_loc': $this->setIdLoc($valeur);
                    break;
                case 'id_loca': $this->setIdLoca($valeur);
                    break;
                case 'date_loyer': $this->setDateLoyer($valeur);
                    break;
                case 'solde_payer_loyer': $this->setSoldePayerLoyer($valeur);
                    break;
                case 'remarque_loyer': $this->setRemarqueLoyer($valeur);
                    break;
                case 'statut_loyer': $this->setStatutLoyer($valeur);
                    break;

            }

        }
    }


    /**
     * @param mixed $date_loyer
     */
    public function setDateLoyer($date_loyer)
    {
        $this->date_loyer = $date_loyer;
    }

    /**
     * @return mixed
     */
    public function getDateLoyer()
    {
        return $this->date_loyer;
    }

    /**
     * @param mixed $id_loc
     */
    public function setIdLoc($id_loc)
    {
        $this->id_loc = $id_loc;
    }

    /**
     * @return mixed
     */
    public function getIdLoc()
    {
        return $this->id_loc;
    }

    /**
     * @param mixed $id_loca
     */
    public function setIdLoca($id_loca)
    {
        $this->id_loca = $id_loca;
    }

    /**
     * @return mixed
     */
    public function getIdLoca()
    {
        return $this->id_loca;
    }

    /**
     * @param mixed $remarque_loyer
     */
    public function setRemarqueLoyer($remarque_loyer)
    {
        $this->remarque_loyer = $remarque_loyer;
    }

    /**
     * @return mixed
     */
    public function getRemarqueLoyer()
    {
        return $this->remarque_loyer;
    }

    /**
     * @param mixed $solde_payer_loyer
     */
    public function setSoldePayerLoyer($solde_payer_loyer)
    {
        $this->solde_payer_loyer = $solde_payer_loyer;
    }

    /**
     * @return mixed
     */
    public function getSoldePayerLoyer()
    {
        return $this->solde_payer_loyer;
    }

    /**
     * @param mixed $statut_loyer
     */
    public function setStatutLoyer($statut_loyer)
    {
        $this->statut_loyer = $statut_loyer;
    }

    /**
     * @return mixed
     */
    public function getStatutLoyer()
    {
        return $this->statut_loyer;
    }


} 